package com.gton.person.mapper;


import com.gton.person.entity.Role;
import com.gton.person.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * @Author: 郭童
 * Date: 2020/11/3 20:47
 * @Description:
 */
@Mapper
public interface UserMapper {
    //根据名字查询
    public User getUserByName(@Param("userName") String userName);

    //修改密码-测试密码加密：解决异常Encoded password does not look like BCrypt
    int updateCodeByPasswordEncoder(@Param("id") int id, @Param("passWord") String passWord);

    List<Role> getRolesByUid(@Param("id") Integer id);

    //List<Role> getUserRolesByUid(@Param("id")Integer id);
}
